<template>
    <div class="component-sortCaret">
        <span>考试时间</span>
        <span class="caret-wrapper">
            <van-icon name="arrow-up"/>
            <van-icon name="arrow-down"/>
        </span>
    </div>
</template>
<script>
export default {
    name: "search",
    props: {
        file: {
            type: String,
            default: null,
        },
    },

    data() {
        return {
            active: 0,
        };
    },
    methods: {
        TabChange(data) {
            this.active = data;
            this.$emit("TabChange", data);
        },
    },
};
</script>
<style scoped lang="scss">
.component-sortCaret {
    display: flex;
    align-items: center;
    margin-left: 10px;
    .van-icon {
        font-size: 12px;
    }
    .caret-wrapper {
        margin-left: 5px;
        display: flex;
        flex-direction: column;
    }
}
</style>
